package com.sj.common.dto.praise;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-03-15
 * Time: 上午 8:53
 * Description: 点赞传参对象
 *
 * @author xiaoqi
 * @since 2022-03-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("点赞传参对象")
public class PraiseParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("点赞主键 自增长")
    private Integer id;

    @ApiModelProperty("点赞文章类型 回复（answer） / 评论 （comment） / 文章（article）")
    @NotBlank
    private String giveType;

    @ApiModelProperty("点赞类型 1 赞 -1 踩")
    @NotNull
    private Integer praiseType;

    @ApiModelProperty("被点赞的类型的id 文章id 回答id 评论id")
    @NotNull
    private Integer typeId;
}